﻿// CMyLineInfoDlg.cpp: 实现文件
//

#include "pch.h"
#include "TrafficPhase.h"
#include "CMyLineInfoDlg.h"
#include "afxdialogex.h"


// CMyLineInfoDlg 对话框

IMPLEMENT_DYNAMIC(CMyLineInfoDlg, CDialogEx)

CMyLineInfoDlg::CMyLineInfoDlg(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_DIALOGLineInfo, pParent)
	, m_roadName(_T(""))
	, m_roadID(0)
{

}

CMyLineInfoDlg::~CMyLineInfoDlg()
{
}

void CMyLineInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, m_roadName);
	DDX_Text(pDX, IDC_EDIT2, m_roadID);
	DDV_MinMaxInt(pDX, m_roadID, 0, INT_MAX);
}


BEGIN_MESSAGE_MAP(CMyLineInfoDlg, CDialogEx)
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_BN_CLICKED(1, &CMyLineInfoDlg::OnBnClicked1)
END_MESSAGE_MAP()


// CMyLineInfoDlg 消息处理程序

CString CMyLineInfoDlg::GetRoadName() {
	return m_roadName;
}

int CMyLineInfoDlg::GetRoadID() {
	return m_roadID;
}

void CMyLineInfoDlg::OnBnClicked1(){
	// TODO: 在此添加控件通知处理程序代码
	OnOK();
}
